﻿using System;
using Xtensive.Orm;

namespace GettingStarted.Model
{
    [HierarchyRoot]
    public class Person : Entity
    {
        [Field, Key]
        public int Id { get; set; }

        [Field]
        public string FirstName { get; set; }

        [Field]
        public string LastName { get; set; }

        [Field]
        public DateTime BirthDate { get; set; }

        public Person(Session session) :
            base(session)
        {}
    }
}